package com.cloudpark.task;

import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.List;

import org.apache.log4j.Logger;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.cloudpark.common.util.ArithHelper;
import com.cloudpark.common.util.CommonUtil;
import com.cloudpark.common.util.SpringContextHolder;
import com.cloudpark.common.util.wechat.WxManagerUtil;
import com.cloudpark.model.entity.EstateWechat;
import com.cloudpark.model.entity.User;
import com.cloudpark.service.EstateService;
import com.cloudpark.service.UserService;

public class InitUserJob extends QuartzJobBean {

	private static final Logger log = Logger.getLogger(InitUserJob.class);

	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		reloadUsers();
	}

	public void reloadUsers() {
		try {
			log.info("init user job");
		} catch (Exception e) {
			log.error("init user job error = ", e);
		}
	}

}
